package test;

import com.alibaba.fastjson.JSON;

public class JsonSerializable {

	public static void main(String[] args) {
		// 对象赋值
		Student stu = new Student();
		stu.setAge(10);
		stu.setName("张三");
		
		System.out.println(stu);
		
		String jsonSerializable = JSON.toJSONString(stu);
	}
}
